package com.wyd.rabbitmq.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Created with IntelliJ IDEA.
 * @Date: 2022/07/06/14:21
 * @Description:
 */
@Configuration
public class HelloConfig {

  /**
   * 创建一个队列
   */
  @Bean
  public Queue hello(){
    //这里面可以和之前的Hello项目里面一样，进行5个参数的配置
    Queue hello = new Queue("hello");
    return hello;
  }

}
